tools/xenstore: Correct use of va_end() after va_copy()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 7 Aug 2015 13:51:59 +0000 (14:51 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 13 Aug 2015 09:58:43 +0000 (10:58 +0100)
commitde8c3e826499dbf69d01ee935a67b5d67a131496
treee8b9e3ec3dabf5866baa65d2e8b9814beb99517f
parentc91d0f58dc94074cdc77c40c39ecf8e80d7b82e4
tools/xenstore: Correct use of va_end() after va_copy()

C requires that every use of va_copy() is matched with a va_end() call.

This is especially important for x86_64 as va_{start,copy}() may need to
allocate memory to generate a va_list containing parameters which were
previously in registers.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/talloc.c